GXSetPreferredJobFormatMode
You can use theGXSetPreferredJobFormatMode
function to define, for the application , which job format mode is the preferred mode for your printer driver.
OSErr GXSetPreferredJobFormatMode (gxJobFormatMode mode, Boolean directOnly);
mode
- The job format mode that your driver prefers.
directOnly
- A Boolean value that is
true
if your driver only supports text mode andfalse
if not.- function result
- An error code. The value
noErr
indicates that the operation was successful.DESCRIPTION
TheGXSetPreferredJobFormatMode
function establishes which of the job format modes is the preferred mode of a printer driver. If a printer driver supports PostScript, it generally setsgxPostscriptJobFormatMode
as its preferred mode. If a driver only supports the use of built-in text fonts, it setsgxTextJobFormatMode
as its preferred mode. Otherwise, a printer driver generally setsgxGraphicsJobFormatMode
as its preferred mode.You set the
directOnly
value totrue
if your printer driver does not support graphics mode. For instance, this is the case for a daisy-wheel printer. In this case, you communicate to the application that it cannot send graphics to be printed by your driver by setting thedirectOnly
value totrue
.RESULT CODES
gxSegmentLoadFailedErr A required code segment could not be found,
or there was not enough memory to load it.gxPrUserAbortErr The user has canceled printing. SEE ALSO
You can find an example of using theGXSetPreferredJobFormatMode
function in Listing 3-7 on page 3-29 in the chapter "Printer Drivers."The job format mode constants are described on page 5-14.
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help